lib=libmylib.a

$(lib): cal.o print.o
	ar -rc $@ $^
cal.o:cal.c
	gcc -c $^
print.o:print.c
	gcc -c $^
.PHONY:clean
clean:
	rm -rf *.o *.a
.PHONY: output
output:
	mkdir -p lib/include
	mkdir -p lib/mylib
	cp *.h lib/include
	cp *.o lib/mylib